package com.fusion.core.file.blockstorage;

import com.fusion.core.CoreSubsystem;

import java.io.IOException;

/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 12, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class DownloadStorage extends BlockStorage {
    public static final int TYPE_ID = 1;

    public DownloadStorage(String storagePath, String completeFilePath, CoreSubsystem core) throws IOException {
        super(storagePath, completeFilePath, core);
        isSequential = true;
    }

    protected void signalFileComplete(BlockFile bf) {
        if(T.t)T.info("File downloaded successfully: "+bf.getFd());
    }

    public int getStorageTypeId() {
        return TYPE_ID;
    }
}
